﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="OInspectionEdit.aspx.cs" Inherits="IHISCETeim.Web.MachineSys.MacModel.OInspectionEdit" %>
<style type="text/css">
    table.octable{border: 1px solid #000;border-collapse: collapse;width: 100%;}  
    table.octable td {border: 1px solid #000;padding:1px;vertical-align:middle;}
    table.octable th{background-color: #CCCCCC;border: 1px solid #000;padding: 1px;text-align: center; height:25px; line-height:25px;}
    table.octable td.tdtitle{height:22px; line-height:22px; text-align:center; font-weight:bold; font-size:12px;}
    .DJNGItemCode,.DJNGExceptionrecord{width:90%;}
</style>
<h2 class="contentTitle" style="text-align:center;">
    <%= t=="1"?"完检单（完成机器检查书）":"出库检查单"%>
</h2>
<div class="pageContent">
    <form id="Form1" action="MacModel/OInspectionEdit.aspx?ajaxmethod=edit&ID=<%=ID %>&t=<%=t %>" class="pageForm required-validate"
    onsubmit="return validateCallback(this,navTabAjaxDone);">
    <div class="pageFormContent" layouth="100">
         <table width="100%">
         <tr>
           
            <td width="150px" style="text-align:left;">
                检查时间:
            </td>
            <td >
                <input name="CheckDate" type="text" class="date required"  value="<%=obj.CheckDate.ToString("yyyy-MM-dd") %>"/>
                          
            </td>
         </tr>
        </table>         
       
            <table class="octable" >
                <tr>
                    <td width="10%">型号：</td>
                    <td width="20%">    
                         <%=GetMacType("radio","MachineType",obj.MachineType)%>
                    </td>
                    <td width="10%">防冻液：</td>
                    <td>                        
                        <input name="Antifreeze" type="radio" value="-15"  <%=obj.Antifreeze=="-15"?"checked":""%>  />
                        <input name="Antifreeze" type="radio" value="-25"   <%=obj.Antifreeze=="-25"?"checked":""%>/>-25
                        <input name="Antifreeze" type="radio" value="-35"   <%=obj.Antifreeze=="-35"?"checked":""%>/>-35
                    </td>
                </tr>
                <tr>
                    <td>机号：</td>
                    <td><input name="SerialNumber" type="text" class="required"   value="<%=obj.SerialNumber %>"/></td>
                    <td>机油：</td>
                    <td><input name="EngineOil" type="text" class="required"  value="<%=obj.EngineOil%>"/> </td>
                </tr>
                  <tr>
                    <td>司机号编号：</td>
                    <td><input name="CabNnumber" type="text" class=""  value="<%=obj.CabNnumber%>"/></td>
                    <td>液压油：</td>
                    <td><input name="HydraulicOil" type="text" class=""  value="<%=obj.HydraulicOil%>"/></td>
                </tr>
                 <tr>
                    <td>计时器时间：</td>
                    <td><input name="Timer" type="text" class=""  value="<%=obj.Timer%>"/></td>
                    <td>柴油：</td>
                    <td>
                        <input name="DieselOil" type="radio" value="0#"  <%=obj.DieselOil=="0#"?"checked":""%>  />0#
                        <input name="DieselOil" type="radio" value="-10#"  <%=obj.DieselOil=="-10#"?"checked":""%> />-10#
                   
                    </td>
                </tr>
                 <tr>
                    <td>发动机号:</td>
                    <td><input name="EngineNumber" type="text" class="required checkEngineNumber" vtype='3'  value="<%=obj.EngineNumber%>"/></td>
                     <td>仪表编号:</td>
                    <td><input name="MeterNumber" type="text" class=""   value="<%=obj.MeterNumber%>"/></td>
                </tr>
            </table>
    
        <div class="divider">
        </div>
         <table width="100%">
         <tr>
            <td width="90px" style="font-weight:bold;">
                NG项目:
            </td>
            <td  style="text-align:left;">
                (只需填写出现NG的项目)</td>
            
         </tr>
        </table>         
       <div class="divider">
        </div>
         <h2>4.问题记录:</h2>
        <div class="divider">
        </div> 
         <table class="octable" >
            <tr> 
                 <th width="50px">&nbsp;</th>
               <th>异常记录</th>
                <th width="10%">责任工位</th>
                 <th width="11%">责任人</th>
                <th width="10%">责任供应商</th>
                <th>分类</th>
            </tr>            
              <asp:Repeater ID="rpDJNGItem" runat="server">
                <ItemTemplate>
                     <tr>
                        <td ><a class="addDJNGItem" href="#">增</a>&nbsp;<a class="deleteDJNGItem" href="#" style="display:none;">删</a></td>
                        <td><input type="text" name="DJNGExceptionrecord" class="DJNGExceptionrecord inputGetFormLimtt autocomplete" value="<%# Eval("Exceptionrecord")%>" suggestFields2="Exceptionrecord" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getngexceptionrecordautocomplete" swidth="300" mustMatch="false"/></td>
                        <td ><input type="text" name="Station" class="Station inputGetFormLimtt" value="<%# Eval("Station")%>"/></td>
                         <td ><input type="text" name="DutyWorker" class="" value="<%# Eval("DutyWorker")%>"/></td>
                        <td ><input type="text" name="Supplier" class="Supplier inputGetFormLimtt autocomplete" suggestFields="AliasName" autocompletehref="<%=AutoCompleteRequestUrl %>?ajaxmethod=getsupplierlistsuggest" value="<%# Eval("Supplier")%>" swidth="300"/></td>
                       <td ><input type="text" name="NGClass" class="NGClass" value="<%# Eval("NGClass")%>"/></td>
                    </tr>
                </ItemTemplate>
               </asp:Repeater>
        </table>        
    </div>
    <div class="formBar">
        <ul>
           <li>
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit">
                            保存</button></div>
                </div>
            </li>
            <li>
                <div class="button">
                    <div class="buttonContent">
                        <button type="button" class="close">
                            取消</button></div>
                </div>
            </li>
        </ul>
    </div>
    </form>
</div>
